package com.dachuang.canjiren.service;

import com.dachuang.canjiren.entity.Comment;
import com.baomidou.mybatisplus.extension.service.IService;
import com.dachuang.common.utils.R;
import org.springframework.util.StringUtils;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author testjava
 * @since 2020-07-27
 */
public interface CommentService extends IService<Comment> {
    /**
     * 志愿者评论
     * @param comments
     * @param mainId
     * @param userId
     * @param volunteerId
     * @return
     */
    R insertComment(String comments, Integer mainId, Integer userId, Integer volunteerId);

    /**
     * 志愿者评论列表
     * @param volunteerId
     * @return
     */
    R selectCommentList(Integer volunteerId);
}
